Chapter III index operations and performance testing
The importance of indexes under big data is not much to say.The following test used a MongoDB client tool Robomongo, you can choose to download on the Internet. Inserting test dataInsert 1
What is MongoDBMongoDB is written by the C + + language and is an open source database system based on distributed file storage.In the case of high load, adding more nodes can guarantee the performance of the server.MongoDB is designed to provide
Install and use mongodb
1. Install and start MongoDB
Widndows and linux are basically the same
1. Download the database,
Mongodb-linux-x86_64-ubuntu1404-3.0.3.tgz: linux
2. decompress the file and place it in a proper location.
Tar-vxf mongodb-linux-
I. MONGODB installation and start-upWidndows and Linux are basically the same1. Download the database,Linux:mongodb-linux-x86_64-ubuntu1404-3.0.3.tgz2. Unzip the file and place it in the appropriate locationtar-vxf mongodb-linux-x86_64-ubuntu1404-3
The project used to MongoDB, the basic is to use Robomongo to connect the server, do some of the lower permissions to delete and change the operation. Commands often forget to record some of the most frequently used commands for collections for easy
MongoDB paging is very simple, this article mainly talk about the problems of paging, as well as the optimization scheme From the traditional web to the mobile API, we all face the same problem, such as Ajax get size display, etc., will force you to
Chapter III index operations and performance testingThe importance of indexes under big data is not much to say.The following test used a MongoDB client tool Robomongo, you can choose to download on the Internet. Official website:
1. MongoDB Installation on Mac
Download mongodb,https://www.mongodb.org/
Unzip to a specified folder, such as:/users/enniu1/desktop/zjg/mongodb-osx-x86_64-3.2.6 (This is the version of my MongoDB)
Configure path
Input
ObjectiveMongoDB the version of the database is 3.0.7. Record in the use of MongoDB database encountered a variety of problems, is currently encountered a collation, no classification, and so many times, sorting out a bit.1. Authentication fails
1. MongoDB Installation on Mac
Download mongodb,https://www.mongodb.org/
Unzip to a specified folder, such as:/users/enniu1/desktop/zjg/mongodb-osx-x86_64-3.2.6 (This is my MongoDB version)
Configure path
Input command: "VI
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.